package appapi.entity.Zhongjiao;

import appapi.entity.bridge.SceneDeviceEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.beans.BeanUtils;

import java.io.Serializable;

/**
 * @author dhq
 * @version 1.0
 * @date 2023/9/12  9:36
 */
@Data
@ApiModel(description="场景-设备管理")
@AllArgsConstructor
@NoArgsConstructor
public class SceneEquipmentDto implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * ID
     */
    @ApiModelProperty(value="ID 新增不传")
    private Long id;

    /**
     * 所属项目
     */
    @ApiModelProperty(value="所属项目")
    private Long projId;

    /**
     * 工段id
     */
    @ApiModelProperty(value="工段id")
    private Long sectId;


    /**
     * 设备类别  0塔吊 1升降机 2爬模 3 挂篮 4 门禁 5 闸机 6摄像头
     */
    @ApiModelProperty(value="设备类别  0塔吊 1升降机 2爬模 3 挂篮 4 门禁 5 闸机 6摄像头")
    private Long deviceType;


    @ApiModelProperty(value="设备id")
    private Long deviceId;

    /**
     * 场景摘要
     */
    @ApiModelProperty(value="设备编号")
    private String deviceNo;

    /**
     * 现场名称
     */
    @ApiModelProperty(value="现场名称")
    private String deviceActname;


    public SceneDeviceEntity entity(){
        SceneDeviceEntity entity = new SceneDeviceEntity();
        BeanUtils.copyProperties(this,entity);
        return entity;
    }






}
